<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Rails::Generator::Commands::List</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Rails::Generator::Commands::List</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../files/vendor/rails/railties/lib/rails_generator/commands_rb.html">
                vendor/rails/railties/lib/rails_generator/commands.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="Base.html">
                Base
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
<a href="List.html">List</a> a generator&#8216;s action manifest.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M001850">class_collisions</a>&nbsp;&nbsp;
      <a href="#M001853">complex_template</a>&nbsp;&nbsp;
      <a href="#M001849">dependency</a>&nbsp;&nbsp;
      <a href="#M001854">directory</a>&nbsp;&nbsp;
      <a href="#M001851">file</a>&nbsp;&nbsp;
      <a href="#M001856">migration_template</a>&nbsp;&nbsp;
      <a href="#M001855">readme</a>&nbsp;&nbsp;
      <a href="#M001857">route_resources</a>&nbsp;&nbsp;
      <a href="#M001852">template</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M001850" class="method-detail">
        <a name="M001850"></a>

        <div class="method-heading">
          <a href="#M001850" class="method-signature">
          <span class="method-name">class_collisions</span><span class="method-args">(*class_names)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001850-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001850-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 544</span>
544:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_collisions</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">class_names</span>)
545:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">class_collisions</span> <span class="ruby-identifier">class_names</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">', '</span>)
546:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001853" class="method-detail">
        <a name="M001853"></a>

        <div class="method-heading">
          <a href="#M001853" class="method-signature">
          <span class="method-name">complex_template</span><span class="method-args">(relative_source, relative_destination, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001853-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001853-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 556</span>
556:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">complex_template</span>(<span class="ruby-identifier">relative_source</span>, <span class="ruby-identifier">relative_destination</span>, <span class="ruby-identifier">options</span> = {})
557:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">template</span> <span class="ruby-node">&quot;#{options[:insert]} inside #{relative_destination}&quot;</span>
558:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001849" class="method-detail">
        <a name="M001849"></a>

        <div class="method-heading">
          <a href="#M001849" class="method-signature">
          <span class="method-name">dependency</span><span class="method-args">(generator_name, args, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001849-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001849-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 540</span>
540:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dependency</span>(<span class="ruby-identifier">generator_name</span>, <span class="ruby-identifier">args</span>, <span class="ruby-identifier">options</span> = {})
541:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">dependency</span> <span class="ruby-node">&quot;#{generator_name}(#{args.join(', ')}, #{options.inspect})&quot;</span>
542:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001854" class="method-detail">
        <a name="M001854"></a>

        <div class="method-heading">
          <a href="#M001854" class="method-signature">
          <span class="method-name">directory</span><span class="method-args">(relative_path)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001854-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001854-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 560</span>
560:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory</span>(<span class="ruby-identifier">relative_path</span>)
561:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">directory</span> <span class="ruby-node">&quot;#{destination_path(relative_path)}/&quot;</span>
562:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001851" class="method-detail">
        <a name="M001851"></a>

        <div class="method-heading">
          <a href="#M001851" class="method-signature">
          <span class="method-name">file</span><span class="method-args">(relative_source, relative_destination, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001851-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001851-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 548</span>
548:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">relative_source</span>, <span class="ruby-identifier">relative_destination</span>, <span class="ruby-identifier">options</span> = {})
549:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">file</span> <span class="ruby-identifier">relative_destination</span>
550:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001856" class="method-detail">
        <a name="M001856"></a>

        <div class="method-heading">
          <a href="#M001856" class="method-signature">
          <span class="method-name">migration_template</span><span class="method-args">(relative_source, relative_destination, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001856-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001856-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 568</span>
568:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">migration_template</span>(<span class="ruby-identifier">relative_source</span>, <span class="ruby-identifier">relative_destination</span>, <span class="ruby-identifier">options</span> = {})
569:           <span class="ruby-identifier">migration_directory</span> <span class="ruby-identifier">relative_destination</span>
570:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">migration_template</span> <span class="ruby-identifier">file_name</span>
571:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001855" class="method-detail">
        <a name="M001855"></a>

        <div class="method-heading">
          <a href="#M001855" class="method-signature">
          <span class="method-name">readme</span><span class="method-args">(*args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001855-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001855-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 564</span>
564:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readme</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
565:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">readme</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">', '</span>)
566:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001857" class="method-detail">
        <a name="M001857"></a>

        <div class="method-heading">
          <a href="#M001857" class="method-signature">
          <span class="method-name">route_resources</span><span class="method-args">(*resources)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001857-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001857-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 573</span>
573:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">route_resources</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">resources</span>)
574:           <span class="ruby-identifier">resource_list</span> = <span class="ruby-identifier">resources</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_sym</span>.<span class="ruby-identifier">inspect</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">', '</span>)
575:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">route</span> <span class="ruby-node">&quot;map.resources #{resource_list}&quot;</span>
576:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001852" class="method-detail">
        <a name="M001852"></a>

        <div class="method-heading">
          <a href="#M001852" class="method-signature">
          <span class="method-name">template</span><span class="method-args">(relative_source, relative_destination, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001852-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001852-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/railties/lib/rails_generator/commands.rb, line 552</span>
552:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template</span>(<span class="ruby-identifier">relative_source</span>, <span class="ruby-identifier">relative_destination</span>, <span class="ruby-identifier">options</span> = {})
553:           <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">template</span> <span class="ruby-identifier">relative_destination</span>
554:         <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>